package com.hjimi.ski.view.widget;

import android.app.Activity;
import android.content.Context;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.widget.EditText;
import android.widget.TextView;

import com.hjimi.ski.R;

import razerdp.basepopup.BasePopupWindow;

/**
 * Created By 孙岩
 * on 2022/7/28
 */
public class NoPopup extends BasePopupWindow {
    private TextView tv;

    public NoPopup(Context context,String msg) {
        super(context);
        tv = (TextView) findViewById(R.id.tv);
        tv.setText(msg);
    }

    @Override
    protected Animation initShowAnimation() {
        return null;
    }

    @Override
    public View getClickToDismissView() {
        return getPopupWindowView();
    }

    @Override
    public View onCreatePopupView() {
        return createPopupById(R.layout.popup_no);
    }

    @Override
    public View initAnimaView() {
        return findViewById(R.id.rlStart);
    }


}
